<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath }"/>
<%@taglib  prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:forEach items="${youJianList }" var="u">
	<tr>
		<td>${u.huanJie.huanJieMC }</td>			
		<td>${u.title }</td>
		<td>
			<c:if test="${u.state==1 }">启用中</c:if>
			<c:if test="${u.state==0 }">停用中</c:if>
		</td>
		<td><a href="${ctx }/youjian/youJianDetail.do?id=${u.id}" target="_blank" class="btn default btn-xs green-stripe">详情</a></td>
		<td><a href="${ctx }/youjian/youJianEdit.do?id=${u.id}" target="_blank" class="btn default btn-xs green-stripe">修改</a></td>
		<td>
			<c:if test="${u.state==1 }">
				<a href="javascript:shiftUp('${u.id }')" class="btn default btn-xs green-stripe">停用</a>
			</c:if>
			<c:if test="${u.state==0 }">
				<a href="javascript:shiftUp('${u.id }')" class="btn default btn-xs green-stripe">启用</a>
			</c:if>
		</td>
	</tr>
</c:forEach>